part of '../repository.dart';

abstract class PasswordResetFailure extends Failure {
  const PasswordResetFailure();
}

class NonexistentUserPasswordResetFailure extends PasswordResetFailure {
  const NonexistentUserPasswordResetFailure();
}

class PasswordResetTokenPasswordResetFailure extends PasswordResetFailure {
  const PasswordResetTokenPasswordResetFailure({
    required this.passwordResetTokenFound,
    this.passwordResetTokenExpired,
  });

  final bool passwordResetTokenFound;
  final bool? passwordResetTokenExpired;
}

class ServerPasswordResetFailure extends PasswordResetFailure {
  const ServerPasswordResetFailure();
}

class NetworkPasswordResetFailure extends PasswordResetFailure {
  const NetworkPasswordResetFailure();
}
